<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2007-9-22
  Time: 14:04:55
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/common/taglib.jsp" %>
<html>
  <head><title>Simple jsp page</title></head>
  <body>
  <s:form action="/admin/linkManage.do" method="post">
    <table>
        <tr>
            <td>连接名称</td>
            <td>
                <s:text name="link.name"/>
            </td>
        </tr>
        <tr>
            <td>连接地址</td>
            <td>
               <s:text name="link.url"/>
            </td>
        </tr>
        <tr align="center">
            <td width="16%" height="30">所属分类<br></td>
            <td width="84%" align="left">&nbsp;&nbsp;栏目：
                <s:select name="link.catalog.id" id="catalogId">
                    <s:option value="0">请选择栏目...</s:option>
                    <c:forEach items="${actionBean.catalogs}" var="catalog">
                        <s:option value="${catalog.id}">□-${catalog.name}</s:option>
                        <c:if test="${not empty catalog.childs}">
                            <c:forEach items="${catalog.childs}" var="child">
                                <s:option value="${child.id}">....${child.name}</s:option>
                            </c:forEach>
                        </c:if>
                    </c:forEach>
                </s:select>
            </td>
        </tr>
        <tr>
            <td>排序</td>
            <td>
               <s:text name="link.orders"/>
            </td>
        </tr>
        <tr>
            <td>显示在首页</td>
            <td>
               <s:checkbox name="link.showOnIndex" checked="true"/>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <s:hidden name="link.id"/>
                <input type="submit" name="editLink" value="${param.id>0?'修改':'新建'}"/>
            </td>
        </tr>
    </table>
</s:form>
  </body>
</html>